home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
10
/
chkdrv.zip
/
CHKDRV.DOC
< prev
Wrap
Text File
|
1989-10-03
|
978b
|
38 lines
PURPOSE
For batch files; returns an errorlevel that indicates whether
a specific drive is available. Avoids "Abort, Retry, Fail"
messages and allows unattended operation.
FORMAT
CHKDRV d:
REMARKS
The colon is required. The errorlevel returned is one of:
0: The drive is ready
1: The drive is not ready (invalid drive letter, door
open, no diskette, etc.)
255: Usage error
Typical use:
chkdrv a:
if errorlevel 255 goto usage
if errorlevel 1 goto not_ready
(drive ready if here)
...
:NOT_READY
(drive not ready if here)
...
:USAGE
(missing parameter or colon if here)
Donated to the public domain.
Chris Dunford
10/3/89
CompuServe 76703,2002